<%-- 
    Document   : register
    Created on : 2021-12-14, 22:17:45
    Author     : Mayiyaheila
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="jquery.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="login.css" />
    </head>
    <body>
    <div class="login-box">
        <h2>欢迎注册JW论坛。</h2>
        <form name="regform" action="registerAction.jsp" method="post">
            <div class="login-field">
                <input type="text" class="input1" name="Uid" required="" />
                <label>账号</label>
            </div>
<%--            请您输入账号：<input id="account" type="text" name="Uid">--%>
            <font color="red">${requestScope.accountMess}</font>
            <div class="login-field">
                <input type="password" class="input1" name="password" required="" />
                <label >请您输入密码</label>
            </div>
<%--            请您输入密码：<input id="pw1" type="password" name="password"><BR>--%>
            <div class="login-field">
                <input type="password" class="input1" name="cpassword" required="" />
                <label >输入确认密码</label>
            </div>
<%--            输入确认密码：<input id="pw2" type="password" name="cpassword">--%>
            <font color="red">${requestScope.imageMess}</font>
            <div class="login-field">
                <input type="text" class="input1" name="username" required="" />
                <label>用户名</label>
            </div>
<%--            请输入用户名：<input type="text" name="username"><BR>--%>
            <a href="login.jsp">已有账号，登录</a>
            <input id="b1" type="submit" value="注册" class="button">
        </form>
    </div>

    <script>
        $("#account").blur(function(){
            alert("Hello");
            // $.post("CheckServlet",
            //     {"account":$(this).val()},
            //     function(result){
            //         $("#checkDiv").html(result);
            //     });
        });
    </script>
    </body>
</html>
